_keypressed = _this select 1;
if (_keypressed in actionKeys "teamswitch") then 
{
    if (dialog) then 
    {
        call Dlg_StoreParams;
        closeDialog 0
    }
    else
    {
        [] execVM "Computer\cpu_dialog.sqf";
    };
  
};
